SimplePay\Core\Transaction\TransactionObserver B

Total Complexity 81
Dependencies 5
Dependents 1
Total lines 965
Lines of code 549
Logical lines of code 196
Comment lines 298
Methods 15
Properties 2

Methods 15

Method Rating Maintainability Complexity Lines of code
update_on_checkout_session()
A
39 13 68
add_on_invoice()
A
42 9 55
update_on_invoice()
A
42 8 56
add_on_order()
A
41 7 57
add_on_payment_intent()
A
42 7 52
update_on_checkout_session_lite()
A
42 6 54
maybe_increment_stock()
S
50 7 29
maybe_decrement_stock_order()
S
51 6 26
maybe_decrement_stock()
S
53 6 23
update_on_failed()
S
54 4 22
get_subscribed_events()
S
48 2 40
update_on_payment_intent()
S
57 3 18
add_on_subscription()
S
54 1 23
add_on_checkout_session()
S
54 1 22
__construct()
S
77 1 4